package nobu.nakata.nfcfare.resource.item.impl;

import java.io.Serializable;

import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonProperty;

import nobu.nakata.nfcfare.resource.item.ITrainResourceItem;



public class TrainResourceItem implements Serializable, ITrainResourceItem {
	private long trainCode;
	private String name;
	
	@JsonCreator
	public TrainResourceItem(
			@JsonProperty("trainCode") long trainCode, 
			@JsonProperty("name") String name){
		this.trainCode		= trainCode;
		this.name			= name;
	}
	
	@Override
	public long getTrainCode() { return trainCode; }
	@Override
	public void setTrainCode(long value) { trainCode = value; }
	@Override
	public String getName() { return name; }
	@Override
	public void setName(String value) { name = value; }
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5390680600190565043L;
}
